/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net.uch.biblioteca.hibernateSpringDao;

/**
 *
 * @author Vasquez
 */

import net.uch.biblioteca.mapping.TbRoles;
import java.util.List;
import org.hibernate.criterion.Expression;
import org.springframework.dao.DataAccessException;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

public class HSTbRolesDAOImpl extends HibernateDaoSupport implements HSTbRolesDAO {
 
    public List seleccionarRol(){
        
        return this.getSession().createCriteria(TbRoles.class).
                add(Expression.eq("rolActivo", "1")).list();

    }
}
